package org.example.service;

import org.example.internalCommon.dto.ResponseResult;
import org.example.internalCommon.request.ForecastPriceDTO;
import org.example.remote.ServicePriceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ForecastPriceService {

    @Autowired
    private ServicePriceClient servicePriceClient;
    public ResponseResult forecastPrice(ForecastPriceDTO forecastPriceDTO) {
        //调用计价服务，计算价格
        ResponseResult responseResult = servicePriceClient.forecastPrice(forecastPriceDTO);
        return ResponseResult.success(responseResult);
    }
}
